﻿namespace SS.Common.Collection
{
    public class ConcurrentQueueEx<T>:ConcurrentQueue<T>, IConcurrentCollection<T>
    {
        public bool Add(T item)
        {
            this.Enqueue(item);
            return true;
        }

        public bool Remove(out T item)
        {
            return this.TryDequeue(out item);
        }
    }
}
